package com.spica.spicaschool.network;

import com.spica.spicaschool.bean.PageEntity;

/**
 * @ClassName Response
 * @Description 全局的返回对象
 * @Author Spica2 7
 * @Date 2021/2/10 9:42
 */
public class Response<T> {

    private int code;
    private String msg;

    public PageEntity getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageEntity pageInfo) {
        this.pageInfo = pageInfo;
    }

    private PageEntity pageInfo;
    private T data;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public T getData() {
        return data;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(T data) {
        this.data = data;
    }
}